package com.example.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.yifei.CallCenterWorkLeader;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CallCenterLeaderMapper extends BaseMapper<CallCenterWorkLeader> {

    @Select("select * from CallCenterWorkLeader where parentId=#{cId}")
    List<CallCenterWorkLeader> list(Integer cId);

    CallCenterWorkLeader getNextLvByParentIdAndLv(@Param("uuid") Integer callCenterConfigurationUuid, @Param("lv") String level);

}
